﻿namespace GameView.Services.Dtos.ConsumProduct
{
    public class ConProStatisticsAll
    {
        public ConProStatisticsAll(List<ConProStatisticsDto> dtos)
        {
            GoldProAll = dtos.Sum(g => g.GoldPro);
            GoldConAll = dtos.Sum(g => g.GoldCon);
            GameGoldProAll = dtos.Sum(g => g.GameGoldPro);
            GameGoldConAll = dtos.Sum(g => g.GameGoldCon);
            GameGirdProAll = dtos.Sum(g => g.GameGirdPro);
            GameGirdConAll = dtos.Sum(g => g.GameGirdCon);
            GamePointProAll = dtos.Sum(g => g.GamePointPro);
            GamePointConAll = dtos.Sum(g => g.GamePointCon);
            GameDiamondProAll = dtos.Sum(g => g.GameDiamondPro);
            GameDiamondConAll = dtos.Sum(g => g.GameDiamondCon);
            GameSumAll = dtos.Sum(g => g.Gamesum);
        }

        public ConProStatisticsAll()
        {
        }

        /// <summary>
        /// 金币产出
        /// </summary>
        public long GoldProAll { get; set; }

        /// <summary>
        /// 金币消耗
        /// </summary>
        public long GoldConAll { get; set; }

        /// <summary>
        /// 元宝产出
        /// </summary>
        public long GameGoldProAll { get; set; }

        /// <summary>
        /// 元宝消耗
        /// </summary>
        public long GameGoldConAll { get; set; }

        /// <summary>
        /// 灵符产出
        /// </summary>
        public long GameGirdProAll { get; set; }

        /// <summary>
        /// 灵符消耗
        /// </summary>
        public long GameGirdConAll { get; set; }

        /// <summary>
        /// 泡点产出
        /// </summary>
        public long GamePointProAll { get; set; }

        /// <summary>
        /// 泡点消耗
        /// </summary>
        public long GamePointConAll { get; set; }

        /// <summary>
        /// 金刚石产出
        /// </summary>
        public long GameDiamondProAll { get; set; }

        /// <summary>
        /// 金刚石消耗
        /// </summary>
        public long GameDiamondConAll { get; set; }

        /// <summary>
        /// 货币余额
        /// </summary>
        public long GameSumAll { get; set; }
    }
}